#创建镜像 docker build -t auth:latest .
#运行镜像 docker run -d -p 56789:56789 -v /dockers/auth/logs:/application/logs --link nacos --restart=always --name auth auth:latest
FROM openjdk:8
ENV APP_DIR=/application APP_NAME=app.jar
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR $APP_DIR
ADD ./target/auth.jar $APP_NAME
EXPOSE 56789
#VOLUME $APP_DIR
ENTRYPOINT ["java", "-jar", "app.jar"]